/**
 * 
 */
package controllers;

import com.sun.org.apache.bcel.internal.generic.RETURN;

import models.User;

/**
 * @author Osama
 *
 */
public class Security extends Secure.Security {
	
	
	public static boolean authentify(String username, String password)
	{
		if (User.find("byUsernameAndPassword", username,password).fetch().size() > 0)
		{
			
			return true;
		}
		else
		{
			return false;
		}
				
	}

}
